/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package defender;

import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.SlickException;

/**
 *
 * @author Shane 
 */
public class DefenderGame extends StateBasedGame{

    public static final int MAINMENUSTATE       = 0;
    public static final int GAMEPLAYSTATE       = 1;
    
    public DefenderGame()
    {
        super("Defender Game");  
        
        this.addState(new MainMenuState(MAINMENUSTATE));
        this.addState(new GameplayState(GAMEPLAYSTATE));
        this.enterState(MAINMENUSTATE);
    }
    
    public static void main(String[] args) throws SlickException
    {
        AppGameContainer app = new AppGameContainer(new DefenderGame());
        
        app.setDisplayMode(800, 600, false);
        app.setShowFPS(true);
        app.start();
    }

    @Override
    public void initStatesList(GameContainer container) throws SlickException {
        //this.getState(MAINMENUSTATE).init(container, this); These appear to duplicate the init functions within them...
        // this.getState(GAMEPLAYSTATE).init(container, this);
    }
    
}
